#ifndef MenuBar_First
#define MenuBar_First
#ifdef __GNUG__
#pragma interface
#endif

#include "Box.h"

class PullDownButton;
class Menu;

//---- MenuBar -----------------------------------------------------------------

class MenuBar: public Box {
public:
	MetaDef(MenuBar);
	MenuBar(Collection *c= 0);
	void AddMenu(Menu *pdm, PullDownButton *pdb= 0);
	void AddMenuRight(Menu *pdm, PullDownButton *pdb= 0);
	Metric GetMinSize();
	void SetExtent(Point e);
	void SetOrigin(Point at);
	void Draw(Rectangle r);
	Command *DispatchEvents(Point lp, Token &t, Clipper *vf);
	VObject *FindItem(Point);
	int CheckKey(Token &t);
	Menu *FindMenu(int id);

protected:
	CompositeVObject *mb;
	VObject *help;
};

#endif
